package com.zhiyou100.blog.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author shkstart
 * @create 2021-10-22 10:11
 */
public class Message implements Serializable {
    private Integer mid;
    private String mcontent;
    private Date mcreateTime;
    private Integer uid;
    private Integer tid;
    private User user;
    private Title title;
    private List<Endorse> zan; //给该留言点赞的信息
    private List<Endorse> xu; //给该留言点赞的信息

    @Override
    public String toString() {
        return "Message{" +
                "mid=" + mid +
                ", mcontent='" + mcontent + '\'' +
                ", mcreateTime=" + mcreateTime +
                ", uid=" + uid +
                ", tid=" + tid +
                ", user=" + user +
                ", title=" + title +
                ", zan=" + zan +
                ", xu=" + xu +
                '}';
    }

    public List<Endorse> getXu() {
        return xu;
    }

    public void setXu(List<Endorse> xu) {
        this.xu = xu;
    }

    public List<Endorse> getZan() {
        return zan;
    }

    public void setZan(List<Endorse> zan) {
        this.zan = zan;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public String getMcontent() {
        return mcontent;
    }

    public void setMcontent(String mcontent) {
        this.mcontent = mcontent;
    }

    public Date getMcreateTime() {
        return mcreateTime;
    }

    public void setMcreateTime(Date mcreateTime) {
        this.mcreateTime = mcreateTime;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Title getTitle() {
        return title;
    }

    public void setTitle(Title title) {
        this.title = title;
    }

    public Message(Integer mid, String mcontent, Date mcreateTime, Integer uid, Integer tid, User user, Title title) {
        super();
        this.mid = mid;
        this.mcontent = mcontent;
        this.mcreateTime = mcreateTime;
        this.uid = uid;
        this.tid = tid;
        this.user = user;
        this.title = title;
    }

    public Message() {
        super();
    }

    public Message(String mcontent, Date mcreateTime, Integer uid, Integer tid) {
        super();
        this.mcontent = mcontent;
        this.mcreateTime = mcreateTime;
        this.uid = uid;
        this.tid = tid;
    }
}
